//
//  LSZCheckChartsManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/6/8.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZCheckChartsManager.h"

@implementation LSZCheckChartsManager
-(id)initWithCheckCharts :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSMutableArray * AddArrayMg = [[NSMutableArray alloc]init];
        NSArray * dicArrayData = dic[@"data"];
        for (NSDictionary * dictionData in dicArrayData) {
            LSZCheckChartsMg * mg = [[LSZCheckChartsMg alloc]init];
            mg.username = NullStringjudgment(NSStr(dictionData[@"username"]));
            mg.count = NullStringjudgment(NSStr(dictionData[@"count"]));
            mg.uid = NullStringjudgment(NSStr(dictionData[@"uid"]));
            mg.avatar = NullStringjudgment(NSStr(dictionData[@"avatar"]));

//            mg.username =  NullStringjudgment(dictionData[@"username"]);

            [AddArrayMg addObject:mg];
        }
        self.arrayData = AddArrayMg;
    }
    return self;
}
@end
@implementation LSZCheckChartsMg
@end
